<?php
////////////////////////////////////////////////////
//	LinBoard
//	Config.php
//	Created: 18th February 2009; 16:30 UTC
//	LinBoard (c) Copyright OpenInferno 2008, 2009
////////////////////////////////////////////////////

//Setup Environment
error_reporting(E_ALL | E_STRICT);

//Direct Access Check
if(!defined("LINBOARD"))
{
	die("<h1>Access Error</h1>Direct Access to this script is forbidden.");
}

define("ROOT_PATH", "C:\wamp\www\LinBoard");

class Config
{
	var $Mysql;
	var $Main;

	public function __construct()
	{
		$this->Mysql = array('host' => 'localhost',
							'username' => 'root',
							'password' => '',
							'database' => 'LinBoard',
							'prefix' => 'lb_');
							
		$this->Main = array('weburl' => 'http://localhost/LinBoard');
	}
	
	public static function getInstance()
	{
		static $instance;
		if(!isset($instance))
		{
			$class = __CLASS__;
			$instance = new $class;
		}
		return $instance;
	}
	
}

?>